﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TalentTypesEdit.ascx.cs"
    Inherits="Micronet.OpenWeb.OpenWeb.Admin.Views.Shared.OpenPersonality.TalentTypesEdit" %>
<owc:OwDetailsView ID="TalentTypeDv" runat="server" AutoGenerateRows="False" DataSourceID="TalentTypeOds" DataKeyNames="TalentTypeID"
    EnableModelValidation="True" OwNotificationID="">
    <Fields>
        <asp:TemplateField>
            <InsertItemTemplate>
                <fieldset>
                    <legend>
                        <owc:OwR runat="server" OwText="GeneralInfo" />
                    </legend>
                    <div>
                        <owac:OwDetailCommonGroup ID="OwDetailCommonGroup2" runat="server" OwBindLanguageValue='<%# Bind("LanguageCode") %>'
                            OwAuthorVisible="false" OwSourceVisible="false" OwCategoryVisible="false" OwWardLocalityVisible="false" />
                        <br />
                    </div>
                </fieldset>
                <fieldset>
                    <legend>
                        <owc:OwR runat="server" OwText="InfoLabel" /></legend>
                <table>
                    <tr>
                        <td>
                            <owc:OwR  runat="server" OwText="Name" />
                        </td>
                        <td>
                            <owc:OwTextBox ID="NameTxt" runat="server" Text='<%# Bind("Name") %>' SkinID="OwTextBox" />
                            <asp:RequiredFieldValidator Text="*" ID="RequiredFieldValidator1" runat="server"
                                        ErrorMessage=" <%$ OwR: NameNotEmpty %>" ControlToValidate="NameTxt" />
                        </td>
                    </tr>
               
                    <tr>
                        <td>
                            <owc:OwR   runat="server" OwText="Parent" />
                        </td>
                        <td>
                            <owc:OwObjectDataSource ID="TalentTypeParentOds" runat="server" DataObjectTypeName="Micronet.OpenWeb.Entity.OwTalentTypesEntity"
                                DeleteMethod="OwDelete" InsertMethod="OwInsert" OldValuesParameterFormatString="original_{0}"
                                SelectMethod="OwGetByDynamic" TypeName="Micronet.OpenWeb.Com.BLL.OwTalentTypesBLL"
                                UpdateMethod="OwUpdate">
                                <SelectParameters>
                                    <asp:Parameter Name="parentID" Type="Int64" />
                                    <asp:Parameter Name="languageCode" Type="String" />
                                    <asp:Parameter Name="sortClause" Type="String" />
                                    <asp:Parameter Name="sortDirection" Type="String" />
                                    <asp:Parameter Name="startRowIndex" Type="Int32" />
                                    <asp:Parameter Name="maximumRows" Type="Int32" />
                                </SelectParameters>
                            </owc:OwObjectDataSource>
                            <owc:OwComboBox ID="ParentCbb" runat="server" DataSourceID="TalentTypeParentOds"
                                SkinID="OwComboBox" DataTextField="Name" DataValueField="TalentTypeID" SelectedValue='<%# Bind("ParentID") %>'
                                EmptyMessage="Select Parent">
                            </owc:OwComboBox>
                          

                        </td>
                    </tr>
                    <tr>
                        <td>
                            <owc:OwR  runat="server" OwText="Description" />
                        </td>
                        <td>
                            <owc:OwEditor runat="server" ID="DescriptionEditor" Width="650" Height="400" Content='<%# Bind("Description") %>' SkinID="OwEditorBrief">
                            </owc:OwEditor>
                        </td>
                    </tr>
                   
                </table>
              
                </fieldset>
            </InsertItemTemplate>
            <EditItemTemplate>
               <fieldset>
                    <legend>
                        <owc:OwR runat="server" OwText="GeneralInfo" />
                    </legend>
                    <div>
                        <owac:OwDetailCommonGroup ID="OwDetailCommonGroup2" runat="server" OwBindLanguageValue='<%# Bind("LanguageCode") %>'
                            OwAuthorVisible="false" OwSourceVisible="false" OwCategoryVisible="false" OwWardLocalityVisible="false" />
                        <br />
                    </div>
                </fieldset>
                <fieldset>
                    <legend>
                        <owc:OwR  runat="server" OwText="InfoLabel" /></legend>
                <table>
                    <tr>
                        <td>
                            <owc:OwR  runat="server" OwText="Name" />
                        </td>
                        <td>
                            <owc:OwTextBox ID="NameTxt" runat="server" Text='<%# Bind("Name") %>' SkinID="OwTextBox" />
                           <asp:RequiredFieldValidator Text="*" ID="RequiredFieldValidator1" runat="server"
                                        ErrorMessage=" <%$ OwR: NameNotEmpty %>" ControlToValidate="NameTxt" />
                        </td>
                    </tr>
               
                    <tr>
                        <td>
                            <owc:OwR  runat="server" OwText="Parent" />
                        </td>
                        <td>
                            <owc:OwObjectDataSource ID="TalentTypeParentOds" runat="server" DataObjectTypeName="Micronet.OpenWeb.Entity.OwTalentTypesEntity"
                                DeleteMethod="OwDelete" InsertMethod="OwInsert" OldValuesParameterFormatString="original_{0}"
                                SelectMethod="OwGetByDynamic" TypeName="Micronet.OpenWeb.Com.BLL.OwTalentTypesBLL"
                                UpdateMethod="OwUpdate">
                                <SelectParameters>
                                    <asp:Parameter Name="parentID" Type="Int64" />
                                    <asp:Parameter Name="languageCode" Type="String" />
                                    <asp:Parameter Name="sortClause" Type="String" />
                                    <asp:Parameter Name="sortDirection" Type="String" />
                                    <asp:Parameter Name="startRowIndex" Type="Int32" />
                                    <asp:Parameter Name="maximumRows" Type="Int32" />
                                </SelectParameters>
                            </owc:OwObjectDataSource>
                            <owc:OwComboBox ID="ParentCbb" runat="server" DataSourceID="TalentTypeParentOds"
                                SkinID="OwComboBox" DataTextField="Name" DataValueField="TalentTypeID" SelectedValue='<%# Bind("ParentID") %>'
                                EmptyMessage="Select Parent">
                            </owc:OwComboBox>
                              
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <owc:OwR   runat="server" OwText="Description" />
                        </td>
                        <td>
                            <owc:OwEditor runat="server" ID="DescriptionEditor" Width="650" Height="400" Content='<%# Bind("Description") %>' SkinID="OwEditorBrief">
                            </owc:OwEditor>
                        </td>
                    </tr>
                   
                </table>
              
                </fieldset>
            </EditItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField ShowHeader="False">
            <EditItemTemplate>
                <fieldset style="position: fixed; bottom: 0px; right: 0px; width: 100%">
                    <legend>
                        <asp:Label ID="Label4" runat="server" EnableViewState="false" Text="<%$ OwR: Action %>" /></legend>
                    </owc:OwButton>
                    <owc:OwButton ID="EditUpdateThenCloseButton" runat="server" CommandName="Update"
                        Text='<%$OwR:Update %>' OnClientClicking="showNotification">
                    </owc:OwButton>
                    &nbsp;
                    <owc:OwConfirmButton ID="EditDeleteButton" runat="server" CausesValidation="True"
                        CommandName="Delete" Text="<%$OwR:Delete %>" SkinID="OwConfirmButton">
                    </owc:OwConfirmButton>
                    &nbsp;<owc:OwButton ID="EditCancelButton" runat="server" CausesValidation="False"
                        CommandName="Cancel" Text="<%$OwR:Cancel %>">
                    </owc:OwButton>
                </fieldset>
            </EditItemTemplate>
            <InsertItemTemplate>
                <fieldset style="position: fixed; bottom: 0px; right: 0px; width: 100%">
                    <legend>
                        <asp:Label ID="Label4" runat="server" EnableViewState="false" Text="<%$ OwR: Action %>" /></legend>
                    <owc:OwButton ID="InsertInsertButton" runat="server" CommandName="Insert" Text="<%$OwR:Insert %>"
                        OnClientClicking="showNotification">
                    </owc:OwButton>
                    &nbsp;<owc:OwButton ID="InsertCancelButton" runat="server" CausesValidation="False"
                        CommandName="Cancel" Text="<%$OwR:Cancel %>">
                    </owc:OwButton>
                </fieldset>
            </InsertItemTemplate>
        </asp:TemplateField>
    </Fields>
</owc:OwDetailsView>
<owc:OwObjectDataSource ID="TalentTypeOds" runat="server" DataObjectTypeName="Micronet.OpenWeb.Entity.OwTalentTypesEntity"
    DeleteMethod="OwDelete" InsertMethod="OwInsert" OldValuesParameterFormatString="original_{0}"
    SelectMethod="OwGetEntity" TypeName="Micronet.OpenWeb.Com.BLL.OwTalentTypesBLL"
    UpdateMethod="OwUpdate">
    <SelectParameters>
        <asp:QueryStringParameter Name="talentTypeID" QueryStringField="ID" Type="Int64" />
    </SelectParameters>
</owc:OwObjectDataSource>
